import { AppIdsModel, AppListModel } from './model/userModel'
import { defHttp } from '/@/utils/http/axios'
enum Api {
  AppList = '/rest/auth/app',
  HaveAppIds = '/rest/auth/app/have',
}

/**
 * @description: user app api
 */
export function appListApi() {
  return defHttp.get<AppListModel>({
    url: Api.AppList,
  })
}

/**
 * @description: user have app api
 */
export function haveAppIdsApi() {
  return defHttp.get<AppIdsModel>({
    url: Api.HaveAppIds,
  })
}
